<template>
  <section>
    <agency-create :formData.sync="createForm" @cancelCreate="cancel" @okCreate="ok" />
  </section>
</template>

<script>
export default {
  components: {
    'agency-create': () => import('../../components/Agency/creates'),
  },
  data() {
    return {
      createForm: {
        agency_id: 0
      },
    };
  },
  mounted() {
  },
  created() {
    this.createForm.agency_id = parseInt(this.$route.query.id);
  },

  methods: {
    cancel() {
      this.$router.push({ path: '/company/partner' });
    },
    ok() {
      this.$router.push({ path: '/company/partner' });
    },
  }
};
</script>
